/**
 * 
 */
package org.xlab.baseframework.test.platform.webservice.api;

import java.util.Hashtable;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;

import org.xlab.baseframework.exception.SystemException;
import org.xlab.baseframework.test.platform.domain.BizTransactionLog;
import org.xlab.baseframework.test.platform.domain.enumerate.EnumUploadedTransactionResponse;

/**
 * @author makubex
 * 
 */
@WebService
public interface ITransactionWebService {
	/**
	 * 上传交易数据到服务器
	 * 
	 * @param transactions
	 *            交易数据
	 * @throws SystemException
	 *             如果发生任何异常
	 */
	@WebMethod(operationName = "sync")
	public Hashtable<String, EnumUploadedTransactionResponse> upload(
			@WebParam(name = "transactions") BizTransactionLog[] transactions)
			throws SystemException;

	/**
	 * @param commandId
	 * @param deviceId
	 * @param token
	 * @param epcNo
	 * @param location
	 * @param qty
	 * @param lotNo
	 * @return
	 * @throws SystemException
	 */
	@WebMethod(operationName = "upload")
	public String[][] upload(@WebParam(name = "commandId") String[] commandId,
			@WebParam(name = "deviceId") String[] deviceId,
			@WebParam(name = "token") String[] token,
			@WebParam(name = "epcNo") String[] epcNo,
			@WebParam(name = "location") String[] location,
			@WebParam(name = "qty") Integer[] qty,
			@WebParam(name = "lotNo") String[] lotNo) throws SystemException;
}
